package com.example.bbs.dao;

import com.example.bbs.bean.Bbstype;
import com.example.bbs.bean.Note;
import com.example.bbs.bean.NoteExample;
import java.util.List;

import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface NoteMapper {
    long countByExample(NoteExample example);

    int deleteByExample(NoteExample example);

    int deleteByPrimaryKey(Integer noteid);

    int insert(Note record);

    int insertSelective(Note record);

    List<Note> selectByExampleWithBLOBs(NoteExample example);

    List<Note> selectByExample(NoteExample example);

    Note selectByPrimaryKey(Integer noteid);

    List<Note> noteList();

    List<Bbstype> selectTypeByTagid(Integer tagid);



    int updateByExampleSelective(@Param("record") Note record, @Param("example") NoteExample example);

    int updateByExampleWithBLOBs(@Param("record") Note record, @Param("example") NoteExample example);

    int updateByExample(@Param("record") Note record, @Param("example") NoteExample example);

    int updateByPrimaryKeySelective(Note record);

    int updateByPrimaryKeyWithBLOBs(Note record);

    int updateByPrimaryKey(Note record);

    List<Note> selectByCreateBy(Integer createby);

    int setTypeTop(@Param("top") Integer top,@Param("noteid") Integer noteid);

    int setTypeGood(@Param("isGood")Integer isGood,@Param("noteid") Integer noteid);

    int setTypeTittleColor(@Param("tittleColor") String tittleColor,@Param("noteid") Integer noteid);
}